package com.lxl.message;

public enum MsgStatus {
    ERROR("ERROR",0),
    REQUEST_ERROR("REQUEST_ERROR",400), FILE_ERROR("FILE_ERROR",404),
    INTERNAL_SERVER_ERROR("INTERNAL_SERVER_ERROR",500),
    SUCCESS("SUCCESS",900), LONG_TASK_RUN("LONG_TASK_RUN",901);

    private String name;
    private int index;

    MsgStatus(String name, int index){
        this.name = name;
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
